FROM mcr.microsoft.com/openjdk/jdk:21-ubuntu
RUN mkdir /app
COPY target/conf /app/
COPY target/thingsboard-4.2.0-boot.jar /app
COPY  ./ssl-tools /app/ssl-tools
RUN chmod u+x /app/ssl-tools/client.keygen.sh
WORKDIR /app
CMD ["java", "-jar", "thingsboard-4.2.0-boot.jar"]
EXPOSE 8080